#ifndef FREETEXTSTYLE_H
#define FREETEXTSTYLE_H

#include "pos2d.h"
#include "textcontext.h"

/****************************************************
  Free text content style. This class should be named
  "FreeTextContent". But now it is named
  "FreeTextStyle" by fault.
 ****************************************************/
class FreeTextContext : public TextContext
{
public:
    FreeTextContext();
    virtual ~FreeTextContext();

    // Set the charactors' number
    void setNum(int num){
        _num = num;
        _pos = new Pos2d[_num];
    }

    // Get the position reference of the nth charactor
    Pos2d& posAt(int index){
        return _pos[index];
    }

private:
    int _num;
    Pos2d * _pos;
};

#endif // FREETEXTSTYLE_H
